
<div>
	<?
		if(isset($system_message))echo $system_message;

		$old_password 	= set_value('old_password')   == FALSE ? NULL  : set_value('old_password') ;
		$new_password 	= set_value('new_password')   == FALSE ? NULL  : set_value('new_password') ;
		$c_new_password = set_value('c_new_password') == FALSE ? NULL  : set_value('c_new_password') ;
		$hidden = array('id'=>$this->session->userdata('userid'));
		echo form_open('change/password/'.$id.'/'.$auth);
	?>
	<fieldset>
		<legend>Change Password Form</legend>
		
			<div class="row collapse">
				<div class="small-3 large-2 columns">
				  <span class="prefix">Old Password:</span>
				</div>
				<div class="small-9 large-10 columns">
					<input type="password" name="old_password" value="<?=$old_password;?>" placeholder="Old Password" required>
				</div>
			</div>
			
			<div class="row collapse">
				<div class="small-3 large-2 columns">
				  <span class="prefix">New Password:</span>
				</div>
				<div class="small-9 large-10 columns">
					<input type="password" name="new_password" placeholder="New Password" required>
				</div>
			</div>
			
			<div class="row collapse">
				<div class="small-3 large-2 columns">
				  <span class="prefix">Confirm Password:</span>
				</div>
				<div class="small-9 large-10 columns">
					<input type="password" name="c_new_password" placeholder="Confirm New Password" required>
				</div>
			</div>
			
			<input type="submit" name="do_change_password" value="Change Password" class="button tiny">
			<a href="<?=site_url('change/cancel');?>" class="btn btn-medium">Cancel and Go back</a>
	</fieldset>

	<?php
	echo form_close();
	?>

</div>